package com.example.othree.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.othree.entity.Drone;
import com.example.othree.entity.WeatherHistoryData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zogran
 * @since 2024-11-12
 */
public interface WeatherHistoryDataMapper extends BaseMapper<WeatherHistoryData> {
    IPage PageList(IPage<WeatherHistoryData> page, @Param(Constants.WRAPPER) Wrapper wrapper);

    IPage WheatGrowthYearPageList(IPage<WeatherHistoryData> page, String city, String district, String year, String crop, String startPeriod, String endPeriod);
    List<WeatherHistoryData> WheatGrowthYearList(String city, String district, String year, String crop, String startDate, String endDate);
}
